package cn.wolfcode.controller;

import cn.wolfcode.domian.Result;
import cn.wolfcode.domian.emp;
import cn.wolfcode.service.empService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class loginController {
    @Autowired
    private empService empService;

    @PostMapping("/login")
    public Result login(@RequestBody emp emp){
        return empService.login(emp);
    }
}
